import my_requests from "@/plugins/request";



/**
 * 查询全部_articleInfo信息
 */
export function get_articleInfoInfo(queryData){
    return my_requests({
        url: '/articleInfo',
        method: 'get',
        params:queryData
    })
}

/**
 * 查询公开的 全部_articleInfo信息
 */
export function get_articleInfoPublic(queryData){
    return my_requests({
        url: '/articleInfo/queryAllPublic',
        method: 'get',
        params:queryData
    })
}



/**
 * 查询全部喜欢的_articleInfo信息
 */
export function get_articleLikeInfo(queryData){
    return my_requests({
        url: '/articleInfo/getLikeArticleInfo',
        method: 'post',
        data:queryData
    })
}


/**
 * 查询全部收藏的的_articleInfo信息
 */
export function get_articleStarInfo(queryData){
    return my_requests({
        url: '/articleInfo/getStarArticleInfo',
        method: 'post',
        data:queryData
    })
}

/**
 * 查询热门文章  返回前5条点赞最多的
 * @param queryData
 * @returns {*}
 */
export function get_HotArticleInfo(queryData){
    return my_requests({
        url: '/articleInfo/hotArticleInfo',
        method: 'get',
        params:queryData
    })
}
/**
 * 查询最新文章  返回前5条
 * @param queryData
 * @returns {*}
 */
export function get_LatestArticleInfo(queryData){
    return my_requests({
        url: '/articleInfo/latestArticleInfo',
        method: 'get',
        params:queryData
    })
}


/**
 * 查询单个_articleInfo信息
 */
export function get_articleInfoInfoById(Id){
    return my_requests({
        url: '/articleInfo/'+Id,
        method: 'get',
    })
}


/**
 * 新增_articleInfo信息
 */
export function add_articleInfoInfo(data){
    return my_requests({
        url: '/articleInfo',
        method: 'post',
        data:data
    })
}


/**
 * 修改_articleInfo信息
 */
export function modify_articleInfoInfo(data){
    return my_requests({
        url: '/articleInfo',
        method: 'put',
        data:data
    })
}


/**
 * 删除_articleInfo信息
 */
export function delete_articleInfoInfo(id){
    return my_requests({
        url: '/articleInfo/'+id,
        method: 'delete',
    })
}

/**
 * 批量删除_articleInfo信息
 */
export function delete_articleInfoInfoBatch(idArr){
    return my_requests({
        url: '/articleInfo/deleteBatch',
        method: 'post',
        data:idArr
    })
}



